package com.community.owner.service.impl;

import com.community.common.entity.ParkingSpace;
import com.community.owner.mapper.OwnerParkingSpaceMapper;
import com.community.owner.service.ParkingSpaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class OwnerParkingSpaceServiceImpl implements ParkingSpaceService {

    @Autowired
    private OwnerParkingSpaceMapper parkingSpaceMapper;


    @Override
    public List<ParkingSpace> getParkingSpaceByOwnerId(Long ownerId) {

        return parkingSpaceMapper.selectParkingSpaceByOwnerId(ownerId);
    }
}
